

package com.kimo.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kimo.shop.bean.app.param.UserRegisterParam;
import com.kimo.shop.bean.model.User;
import com.kimo.shop.bean.param.*;
import com.kimo.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author kimo-taozhouchuan on 2018/09/11.
 */
public interface UserService extends IService<User> {

    User getUserByUserId(String userId);

    void setUserLevelBylevelId(Integer level, Integer levelType);

    void setUserLevelByGrowth(Integer level, Integer minNeedGrowth, Integer maxNeedGrowth, Integer levelType);

    void validate(UserRegisterParam userRegisterParam, String checkRegisterSmsFlag);

    IPage<User> getUserPage(PageParam<User> page, User user);

    Map<String, User> getUserListByUserNumbers(@Param("userSet") Set<String> userSet);

    User getUserDetail(String userId);

    CustomerRespParam countUserByParam(CustomerReqParam param);

    IPage<UserManagerParam> getUserInfoPage(PageParam<User> page, UserManagerReqParam user);

    IPage<UserManagerParam> getUserInfoPage(Page<User> page, UserManagerReqParam user);

    UserManagerParam getuserInfo(String userId);

    void downloadUserModel(HttpServletResponse response);

    UserExcelParam parseUserImportFile(MultipartFile excelFile, List<UserLevelParam> userLevels) throws IOException;
}
